/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class VacuumCleaner {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010040028';
    }

    get categoryName() {
        return '\u5438\u5c18\u5668';
    }

    getMode(params) {
        return command({
            method: 'getMode',
            methodId: 'p1vFcJOP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getOperatingStatus(params) {
        return command({
            method: 'getOperatingStatus',
            methodId: 'pZgR0Vz5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSuction(params) {
        return command({
            method: 'getSuction',
            methodId: 'pGoxs3qm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pDrhJ27w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setMode(params) {
        return command({
            method: 'setMode',
            methodId: 'ppAXwLUK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSuction(params) {
        return command({
            method: 'setSuction',
            methodId: 'peH3AZLM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQ5SKl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default VacuumCleaner;
